package com.hlg.xboot.exceptions;

/**
 * <p>验证码不正确</p>
 * <p>Copyright: Copyright (c) 2016</p>
 *
 * @author yangxin
 * @version 1.0
 * @date 2016/8/5
 */
public class VerifyCodeException extends ServerBizException {

    public VerifyCodeException() {
        super(ErrorCode.VERIFY_CODE_ERROR.getRemark());
        this.errCode = ErrorCode.VERIFY_CODE_ERROR;
    }

    public VerifyCodeException(String errorMessage) {
        super(errorMessage);
        this.errCode = ErrorCode.VERIFY_CODE_ERROR;
    }

    public VerifyCodeException(ErrorCode errorCode) {
        super(errorCode.getRemark());
        this.errCode = errorCode;
    }
}
